import gradio as gr

with gr.Blocks(head='<link rel="icon" type="image/x-icon" href="https://statics.moonshot.cn/kimi-chat/favicon.ico">') as demo:
    name = gr.Textbox(label="Name")
    output = gr.Textbox(label="Greeting")
    greet_btn = gr.Button("Greet")


    def greet(name):
        return f"Hello, {name}!"


    greet_btn.click(fn=greet, inputs=name, outputs=output)

if __name__ == "__main__":
    demo.launch()